package com.xbongbong.pro.systemlabel.pojo.dto;

import com.xbongbong.paas.toolbox.wrap.BaseDTO;
import lombok.Getter;
import lombok.Setter;
import lombok.ToString;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import javax.validation.constraints.Size;

/**
 *
 * @author 魏荣杰
 *
 */
@Setter
@Getter
@ToString
public class SystemLabelAddDTO extends BaseDTO {

    private static final long serialVersionUID = -4461147625496423762L;
    /**
     * 标签名称
     */
    @Size(max = 20)
    @NotBlank
    private String name;

    /**
     * 标签颜色
     */
    @Size(min = 7, max = 7)
    @NotBlank
    private String color;
}
